package com.xinke.module.system.model.vo.logger;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;

@Schema(description = "管理后台 - 系统访问记录新增/修改 Request VO")
@Data
public class LoginLogSaveReqVO {

    @Schema(description = "访问ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "4010")
    private Long logId;

    @Schema(description = "日志类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "日志类型不能为空")
    private Long logType;

    @Schema(description = "链路追踪编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "21682")
    @NotEmpty(message = "链路追踪编号不能为空")
    private String traceId;

    @Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "12004")
    @NotNull(message = "用户编号不能为空")
    private Long userId;

    @Schema(description = "用户类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "用户类型不能为空")
    private Integer userType;

    @Schema(description = "用户账号", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @NotEmpty(message = "用户账号不能为空")
    private String userName;

    @Schema(description = "登录结果", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "登录结果不能为空")
    private Integer loginResult;

    @Schema(description = "用户 IP", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "用户 IP不能为空")
    private String userIp;

    @Schema(description = "浏览器 UA", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "浏览器 UA不能为空")
    private String userAgent;

}